package com.jic.order.enums;

public enum  OrderEnum {

    SUCCESS("0000", "成功"),
    ENUM_EXECEPTION("0004", "枚举转化异常"),
    ORDER_NO_IS_NULL_EXECEPTION("0066", "订单号为空"),
    DELIVER_NO_IS_NULL_EXECEPTION("0066", "交货单号为空"),
    DATA_EXECEPTION("0066", "数据异常"),
    REQUEST_PARAMETER_EXECEPTION("0066", "请求参数异常"),
    GOODS_INFO_EXCEPTION("008", "商品信息异常"),
    DATA_VERSION_EXECEPTION("0066", "数据版本号变化异常"),
    NO_ORDER_INFO("0007","无订单信息"),
    EX_AFTER_SALE_APPLY("1011","售后申请异常"),
    EX_AFTER_SALE_INFO("1012","售后详情异常"),
    EX_AFTER_SALE_LIST("1013","售后列表异常"),
    EX_AFTER_SALE_CANCEL("1014","取消售后异常"),
    EX_STAY_AFTER_SALE_COUNT("1015","待售后数量异常"),
    ERROR_NO_AFTER_SALE_INFO("1210","无售后信息"),
    ERROR_HAS_AFTER_SALE_INFO("1211","已有售后信息"),
    ERROR_OPEN_GROUP_FAILURE("1212","开团失败"),
    UNKOWN_EXECEPTION("1111", "未知异常");

    private String code;

    private String message;

    OrderEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
